package com.zm.rpc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

import com.zm.rpc.server.RpcServer;

/**
 * Hello world!
 *
 */
@ComponentScan(basePackages = {"com.zm.rpc"})
@SpringBootApplication
public class App 
{
    public static void main( String[] args )
    {
        ApplicationContext atx = SpringApplication.run(App.class, args);
        RpcServer server = atx.getBean(RpcServer.class);
        server.start();
    }
}
